package com.bingxue.edu.common.enums;


import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 是否枚举
 *
 * @author panbo
 * @since 2024/6/27
 */
@Getter
@RequiredArgsConstructor
@Dict("是否")
public enum BooleanEnum implements DictEnum<Boolean> {

    TRUE(Boolean.TRUE, "是"),
    FALSE(Boolean.FALSE, "否"),;

    @JsonValue
    @EnumValue
    private final Boolean value;
    private final String label;
}
